import user from '../components/user.vue';
import home from '../components/home.vue';
import cate from '../components/cate.vue';
import news from '../components/news.vue';
import product from '../components/product.vue';
import newsComment from '../components/newsComment.vue';

export const routes = [
    { path:'/',component:home},
    { path:'/user',component:user},
    { path:'/cate',component:cate},
    { path:'/news',component:news},
    { path:'/product',component:product},
    { path:'/news/newsComment/:newsid',component:newsComment},
    {
		path:'*',redirect:'/' //所有不符合地址规范的都将转到/地址下
	}
    
]